import { Controller } from '@nestjs/common';
import { Crud } from 'nestjs-mongoose-crud';
import { Works } from '@libs/db/models/works.model';
import { ApiTags } from '@nestjs/swagger';
import { InjectModel } from 'nestjs-typegoose';

@Crud({
    model: Works,
    routes: {
       create: false,
       update: false,
       delete: false 
    }
})
@Controller('works')
@ApiTags('作品')
export class WorksController {
    constructor(@InjectModel(Works) private readonly model){}
}
